import java.util.*;

public class level3 {
    Random genarator = new Random();

    private String intquestion;
    private final String[] symbol1 = {"+", "*","-","/"};


    String S1 = symbol1[genarator.nextInt(4)];
    String S2 = symbol1[genarator.nextInt(3)];
    String S3 = symbol1[genarator.nextInt(4)];
    String S4 = symbol1[genarator.nextInt(4)];
    String S5 = symbol1[genarator.nextInt(4)];

    int num1= genarator.nextInt(9)+1;
    int num2= genarator.nextInt(9)+1;
    int num3= genarator.nextInt(9)+1;
    int num4= genarator.nextInt(9)+1;
    int num5= genarator.nextInt(9)+1;
    int num6= genarator.nextInt(9)+1;

    public String getLevel3(){
        intquestion = (
                  num1 + " "+ S1 + " "+ num2 + " " +
                        S2 +

                        " " + num3 + " "+ "-" +" "+  num4 + " "+
                        S4 +

                        " " + num5 + " "+ S5 + " "+ num6
        );
        return intquestion;
    }

    public String level3(){
        String s1 = num1 + "";
        String s2 = num2 + "";
        String s3 = num3 + "";
        String s4 = num4 + "";
        String s5 = num5 + "";
        String s6 = num6 + "";

        String str = "";
        String str2 = "";

        Set<String> set = new HashSet<String>();
        set.add(s1);
        set.add(s2);
        set.add(s3);
        set.add(S1);
        set.add(S2);
        set.add(S4);
        set.add(S5);
        Set<String> set2 = new HashSet<String>();
        set2.add(s4);
        set2.add(s5);
        set2.add(s6);
        str = set.toString();
        str2 =set2.toString();
        str = str2+ str;

        return str;
    }
}
